d14b96d55e485eb6c31e3bb5d8ca3c2d3560520a,protocol/src/main/java/net/md_5/bungee/protocol/DefinedPacket.java,DefinedPacket,writeArray,#number[]#ByteBuf#,37

Before Change



    public static void writeArray(byte[] b, ByteBuf buf)
    {
        Preconditions.checkArgument( b.length <= Short.MAX_VALUE, "Cannot send byte array longer than Short.MAX_VALUE (got %s bytes)", b.length );
        writeVarInt( b.length, buf );
        buf.writeBytes( b );
    }

After Change



    public static void writeArray(byte[] b, ByteBuf buf)
    {
        if ( b.length > Short.MAX_VALUE )
        {
            throw new OverflowPacketException( String.format( "Cannot send byte array longer than Short.MAX_VALUE (got %s bytes)", b.length ) );
        }
        writeVarInt( b.length, buf );
        buf.writeBytes( b );